function findDictionaryValue(lists:[],key:any){
	const item:any=lists.find((map:any)=>{return map.id == key});
	return item?.value || ''
}
export function get_transfer_platform_type(){
	return [
		{id:0,value:"小红书"},
	];
}
export function transfer_platform_type(key:any){
	const transferPlatformTypes:any=get_transfer_platform_type();
	return findDictionaryValue(transferPlatformTypes,key);
}
export function get_platform_type(){
	return [
		{id:0,value:"未知"},
		{id:1,value:"小红书"},
		{id:2,value:"抖音"}
	];
}
export function platform_type(key:any){
	const platformTypes:any=get_platform_type();
	return findDictionaryValue(platformTypes,key);
}
export function get_cluster_processing_status(){
	return [
		{id:0,value:"未处理"},
		{id:1,value:"处理中"},
		{id:2,value:"已处理"},
	]
}
export function cluster_processing_status(key:any){
	const cluster_processing_status:any=get_cluster_processing_status();
	return findDictionaryValue(cluster_processing_status,key);
}
export function get_cluster_type(){
	return [
		{id:0,value:"低"},
		{id:1,value:"中"},
		{id:2,value:"高"}
	];
}
export function cluster_type(key:any){
	const cluster_type:any=get_cluster_type();
	return findDictionaryValue(cluster_type,key);
}
export function get_career_status(){
	return [
		{id:0,value:"未知"},
		{id:1,value:"学生"},
		{id:2,value:"白领"},
		{id:3,value:"自由职业"}
	]
}
export function career_status(key:any){
	const career_status:any=get_career_status();
	return findDictionaryValue(career_status,key);
}
//潜客
export function get_lifecycle_tage(){
	return[
		{id:0,value:"未知"},
		{id:1,value:"潜在客户"},
		{id:2,value:"新客"},
	]
}
export function lifecycle_tage(key:any){
	const lifecycle_tage:any=get_lifecycle_tage();
	return findDictionaryValue(lifecycle_tage,key);
}
//符合策略
export function get_strategy_compliance(){
	return[
		{id:0,value:"不符合"},
		{id:1,value:"符合"},
	]
}
export function strategy_compliance(key:any){
	const strategy_compliance:any=get_strategy_compliance();
	return findDictionaryValue(strategy_compliance,key);
}
//潜客等级
export function get_lead_level(){
	return[
		{id:0,value:"未知"},
		{id:1,value:"低"},
		{id:2,value:"中"},
		{id:3,value:"高"},
	]
}
export function lead_level(key:any){
	const lead_level:any=get_lead_level();
	return findDictionaryValue(lead_level,key);
}
